﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Tools;

namespace Entity.Package
{
    public class PackReturnStrikeBalance
    {
        private PackHead packHead;
        public PackHead PackHead
        {
            get { return packHead; }
            set { packHead = value; }
        }
        private string tradeCode = "";
        public string TradeCode
        {
            get { return tradeCode; }
            set { tradeCode = value; }
        }
        private string responseCode = "";
        public string ResponseCode
        {
            get { return responseCode; }
            set { responseCode = value; }
        }
        private string gasUserID = "";
        public string GasUserID
        {
            get { return gasUserID; }
            set { gasUserID = value; }
        }
        private string bankWaterNumber = "";
        public string BankWaterNumber
        {
            get { return bankWaterNumber; }
            set { bankWaterNumber = value; }
        }
        private string payMoney = "0";
        public string PayMoney
        {
            get { return payMoney; }
            set { payMoney = value; }
        }

        public override string ToString()
        {
            string packBody = tradeCode + "|" + responseCode + "|" + gasUserID + "|" + bankWaterNumber + "|" + payMoney;
            if (packHead == null)
                return packBody;
            else
                return packHead.ToString() + MD5Helper.UserMd5(packBody) + packBody;
        }
    }
}
